<a href="<?php echo base_url('member/info');?>">基本资料</a>&nbsp;
<a href="<?php echo base_url('member/info/changemobile');?>">修改手机号码</a>&nbsp;
<a href="<?php echo base_url('member/info/changepassword');?>">修改密码</a>&nbsp;<br><br><br>
<form action="" method="post">

登录密码：<input type="password" placeholder="" name="password" id="password"  ><br><br>
新手机号：<input type="text" placeholder="" name="mobile" id="mobile"  ><br><br>

        <input type="buttom" value="保存" onclick="return setinfo();">
</form>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">

function setinfo(){
    var valData = {
      'password'  :  $('#password').val(),
      'mobile'    :  $('#mobile').val(),
      'type'      :  'mobile'
      
    }
    $.ajax({
        type : 'POST',
        url  : '<?php echo base_url('member/info/setinfo');?>',
        data : valData,
        success:function(msg){
            var json = eval('('+msg+')');
            if(json.err > 0){
                alert(json.msg)
            }
            if(json.err == 0 ){
            	alert('保存成功');
              location.href = '<?php echo base_url('member/info');?>';
            }
        }
    });
}

</script>